package com.springboot.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Detail {
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("detail_id")
    Integer detailId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("detail_sku_id")
    Integer detailSkuId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("detail_order_id")
    Integer detailOrderId;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("detail_unit_price")
    BigDecimal detailUnitPrice;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("detail_create_date")
    Date detailCreateDate;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("detail_count")
    Integer detailCount;
    @JsonInclude(JsonInclude.Include.NON_NULL)

    @JsonProperty("detail_sum_price")
    BigDecimal detailSunprice;

    @JsonProperty("detail_sku_temp")
    String detailSkuTemp;

    @JsonProperty("detail_sku_sugar")
    String detailSkuSugar;

    @JsonProperty("detail_sku_cream")
    String detailSkuCream;

    @JsonProperty("detail_sku_size")
    String detailSkuSize;


    Order order;
    Category categorys;
    Product products;
}
